import secrets
import string


def bnt_generate_verification_code(size=6):
    # 生成随机的验证码字符串
    code = ''.join(secrets.choice(string.ascii_uppercase + string.digits) for _ in range(size))
    return code
